﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SowAdd.aspx.cs" Inherits="OnlineManagement.Web.webs.SowAdd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <meta http-equiv="pragma" content="no-cache" />
    <meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
    <style type="text/css">
        body
        {
          background:#f0f0f0 !important;
         
            }
    </style>
    <link rel="stylesheet" href="../resources/css/reset.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="../resources/css/defaultStyle.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="../resources/css/invalid.css" type="text/css" media="screen" />
    
    <link href="../resources/css/jquery.ui.all.css" rel="stylesheet" type="text/css" />
    <script src="../resources/scripts/jquery-1.10.2.js" type="text/javascript"></script>
    <script src="../resources/scripts/jquery.ui.core.js" type="text/javascript"></script>
    <script src="../resources/scripts/jquery.ui.datepicker.js" type="text/javascript"></script>
    <script src="../resources/scripts/jquery.ui.widget.js" type="text/javascript"></script>
    <script src="../resources/scripts/jquery.ui.datepicker-zh-TW.js" type="text/javascript"></script>
    <script src="../resources/scripts/jquery.colorbox.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        $(document).ready(function () {
            $("#<%=txtDateIncome.ClientID %>").datepicker($.datepicker.regional["zh-TW"]).datepicker("option", "dateFormat", "yy-mm-dd");
            $("#<%=txtBirthday.ClientID %>").datepicker($.datepicker.regional["zh-TW"]).datepicker("option", "dateFormat", "yy-mm-dd");

            $("#linkBack").click(function () {
                parent.$.colorbox.close();
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">

    <div class="content-box-content" style=" margin: 0 auto; width: 1000px;">
        <div class="notification information png_bg" style="width: 800px;">
            <a href="#" class="close">
                <img src="../resources/images/icons/cross_grey_small.png" title="Close this notification"
                    alt="close" /></a>
            <div>
                红色星号 <span style="color: Red">*</span>为必填项目
            </div>
        </div>
        <fieldset>
            <p>
                <span class="spanSet">养殖场名称:
                    <asp:TextBox runat="server" ID="txtHoggeryName" Enabled="false" CssClass="text-input small-input"></asp:TextBox>
                </span><span class="spanSet">母猪耳号:
                    <asp:TextBox ID="txtBitId" runat="server" CssClass="text-input small-input"></asp:TextBox>
                    <span style="color: Red">*</span>
                </span>
                <!-- Classes for input-notification: success, error, information, attention -->
            </p>
            <p>
                <span class="spanSet">猪圈号:&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:DropDownList runat="server" ID="ddlPigPen" CssClass="small-input">
                    </asp:DropDownList>
                    <span style="color: Red">*</span> </span>&nbsp;&nbsp; <span class="spanSet">母猪品种:
                        <asp:DropDownList runat="server" ID="ddlPigType" CssClass="small-input">
                        </asp:DropDownList>
                        <span style="color: Red">*</span> </span>
            </p>
            <p>
                <span class="spanSet">母猪来源:
                    <asp:DropDownList runat="server" ID="ddlSource" CssClass="small-input">
                    </asp:DropDownList>
                </span>&nbsp;&nbsp;&nbsp;&nbsp; <span class="spanSet">进栏日期:
                    <asp:TextBox runat="server" ID="txtDateIncome" CssClass="text-input small-input"></asp:TextBox>
                    <span style="color: Red">*</span>
                    <%-- <asp:RegularExpressionValidator ID="revDateIncome" runat="server" 
                          ErrorMessage="请输入正确日期格式。" ForeColor="Red" ControlToValidate="txtDateIncome"
                          ValidationExpression="^([1-2]\d{3})[\/|\-](0?[1-9]|10|11|12)[\/|\-]([1-2]?[0-9]|0[1-9]|30|31)$">
                          </asp:RegularExpressionValidator>--%>
                    
                </span>
            </p>
            <p>
                <span class="spanSet">母猪状态:
                    <asp:DropDownList ID="ddlPropagateState" runat="server" CssClass="small-input" AutoPostBack="false">
                    </asp:DropDownList>
                </span>&nbsp;&nbsp;&nbsp;&nbsp; <span class="spanSet">出生日期:
                    <asp:TextBox runat="server" ID="txtBirthday" CssClass="text-input small-input"></asp:TextBox>
                </span><span style="color: Red">*</span>
                
            </p>
            <p>
                <span class="spanSet">配种次数:
                    <asp:TextBox runat="server" ID="txthybridizationCount" CssClass="text-input small-input"
                        onkeyup="JavaScript:this.value=this.value.replace(/\D/gi,'')"></asp:TextBox>
                </span><span class="spanSet">已生产胎数:
                    <asp:TextBox runat="server" ID="txtPropagateCount" CssClass="text-input small-input"
                        onkeyup="JavaScript:this.value=this.value.replace(/\D/gi,'')"></asp:TextBox>
                </span>
            </p>
            <p>
                <span class="spanSet">备注说明:
                    <asp:TextBox ID="txtComment" runat="server" TextMode="SingleLine" Width="400" MaxLength="50"
                        CssClass="text-input"></asp:TextBox>
                </span>
            </p>
            <p>
                <asp:LinkButton runat="server" ID="btnSave" CssClass="button">保存</asp:LinkButton>
                <%--<asp:Button ID="btnSave" Text="保存" runat="server" CssClass="confirm-button" />--%>
                <a class="button" id="linkBack" href="javascript:void(0);">取消</a>
            </p>
            <p>
            </p>
            <p>
            </p>
            <asp:Panel runat="server" ID="panMsg">
            </asp:Panel>
            
        </fieldset>
        <div class="clear">
        </div>
    </div>
    
    </form>
</body>
</html>
